package top.tangyh.lamp.care.vo.result;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import top.tangyh.lamp.care.entity.BHl7YzLisResult;

import java.time.LocalDateTime;

@Data
public class ProjectDetailOutVO {

    @Schema(description ="检验项目名称")
    private String projectName;

    @Schema(description ="检验报告名称")
    private String reportName;

    @Schema(description ="检验项目ident")
    private String projectIdent;

    @Schema(description ="检验项目采集时间")
    private LocalDateTime takeTime;

    @Schema(description ="检验值")
    private String testValue;

    @Schema(description ="检验结果")
    private String sampleResult;


    public ProjectDetailOutVO(BHl7YzLisResult resultPO) {
        this.projectIdent = resultPO.getProjectIdent();
        this.projectName = resultPO.getProjectName();
        this.takeTime = resultPO.getTakeTime();
        this.sampleResult = resultPO.getSampleResult();
        this.testValue = resultPO.getTestValue();
        this.reportName = resultPO.getReportName();
    }
}
